﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CleanShiftCodeEntry.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.CodeSetup.CleanShiftCodeEntry" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />

    <script language="JavaScript" type="text/javascript" src="../../Javascript/CommonFunction.js"></script>
    <script language="javascript" type="text/javascript">
    function CheckData(SOM_CleanShiftCode1,SOM_CleanShiftCode2,SOM_CleanShiftCode3,SOM_CleanShiftOrder)
    {
        if(trim(document.getElementById("txtShiftCode1").value)=="")
        {
            alert(SOM_CleanShiftCode1);
            document.getElementById("txtShiftCode1").focus();
            return false;
        }
        else if(trim(document.getElementById("txtShiftCode2").value)=="")
        {
            alert(SOM_CleanShiftCode2);
            document.getElementById("txtShiftCode2").focus();
            return false;
        }
        else if(trim(document.getElementById("txtShiftCode3").value)=="")
        {
            alert(SOM_CleanShiftCode3);
            document.getElementById("txtShiftCode3").focus();
            return false;
        }
        else if(trim(document.getElementById("txtOrder").value)=="")
        {
            alert(SOM_CleanShiftOrder);
            document.getElementById("txtOrder").focus();
            return false;
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140912" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">
                                <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140812" ParentMenuID="M140912" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <!--**********context Begin *****************-->
                                <fieldset>
                                    <legend class="Title1">
                                        <asp:Label ID="lblTitle" runat="server" Text="CategoryEntry"></asp:Label></legend>
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label ID="lblShiftCode1" runat="server" Text="ShiftCode1"></asp:Label><em>*</em>
                                            </td>
                                            <td style="width: 150px">
                                                <asp:TextBox runat="server" ID="txtShiftCode1" MaxLength="10"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label ID="lblShiftCode2" runat="server" Text="ShiftCode2"></asp:Label><em>*</em>
                                            </td>
                                            <td style="width: 150px">
                                                <asp:TextBox runat="server" ID="txtShiftCode2" MaxLength="10"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label ID="lblShiftCode3" runat="server" Text="ShiftCode3"></asp:Label><em>*</em>
                                            </td>
                                            <td style="width: 150px">
                                                <asp:TextBox runat="server" ID="txtShiftCode3" MaxLength="10"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label runat="server" ID="lblOrder" Text="Order"></asp:Label><em>*</em>
                                            </td>
                                            <td colspan="3" style="width: 135px">
                                                <asp:TextBox runat="server" ID="txtOrder" MaxLength="5" onkeyup="value=value.replace(/[^\d]/g,'');"></asp:TextBox></td>
                                                <td style="width: 50%">
                                                <asp:Label runat="server" ID="lblVoid" Text="Void"></asp:Label><asp:CheckBox runat="server" ID="chVoid" AutoPostBack="True" OnCheckedChanged="chVoid_CheckedChanged" />
                                            </td>
                                                </tr>
                                        <tr>
                                        <td colspan="4">
                                                <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" />
                                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                                <asp:Button ID="btnSaveReturn" runat="server" Text="Save And Return" OnClick="btnSaveReturn_Click" />
                                                <asp:Button ID="btnSaveNew" runat="server" Text="Save And New" OnClick="btnSaveNew_Click" />
                                                <asp:Button ID="btnCancel" runat="server" Text = "Cancel" OnClick="btnCancel_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:TextBox ID="txtSession" runat="server" Visible="False"></asp:TextBox></fieldset>
                                <!--**********context End *****************-->
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 54px">
                                <WebStructure:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
